package org.tao.lightningmq.nameserver.event.model;

import org.tao.lightningmq.common.event.model.BaseEvent;

/**
 * @Author lht
 * @date 2025/1/16 - 21:30
 * @description: 从节点连接主节点时发送的时间
 */
public class StartReplicationEvent extends BaseEvent {

    private String user;
    private String password;
    private String slaveIp;
    private String slavePort;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSlaveIp() {
        return slaveIp;
    }

    public void setSlaveIp(String slaveIp) {
        this.slaveIp = slaveIp;
    }

    public String getSlavePort() {
        return slavePort;
    }

    public void setSlavePort(String slavePort) {
        this.slavePort = slavePort;
    }

    @Override
    public String toString() {
        return "StartReplicationEvent{" +
                "user='" + user + '\'' +
                ", password='" + password + '\'' +
                ", slaveIp='" + slaveIp + '\'' +
                ", slavePort='" + slavePort + '\'' +
                '}';
    }
}
